Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
TypeScript - Class-Transformer: trabajando con la palabra clave "tipo"

En mi Swagger Doc para una clase, intento ver una salida de esquema JSON para mi clase.

Mi clase, sin embargo, hace uso de 2 "tipos"

 export class PushNotification { name: string; dir?: NotificationDirection; vibrate?: VibratePattern; } ... type NotificationDirection = 'auto' | 'ltr' | 'rtl'; type VibratePattern = number | number[];

En Swagger, en el esquema, la clave: valor para "nombre" se muestra bien, pero el valor aparece en blanco para estas otras dos variables.

¿Cómo puedo hacer para serializar estos? He estado usando class-transformer pero no sé si funciona con "tipo".

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!